package com.iceframework.hiapp;

import com.iceframework.hiapp.core.init.HiApp;
import com.iceframework.hiapp.slice.DBAbilitySlice;
import com.iceframework.hiapp.slice.FormAbilitySlice;
import com.iceframework.hiapp.slice.HomeAbilitySlice;
import com.iceframework.hiapp.slice.WebViewAbilitySlice;
import ohos.aafwk.ability.Ability;
import ohos.aafwk.content.Intent;
import ohos.agp.colors.RgbColor;
import ohos.agp.utils.Color;
import ohos.agp.window.service.WindowManager;
import ohos.bundle.IBundleManager;

public class MainAbility extends Ability {

    @Override
    public void onStart(Intent intent) {
        super.onStart(intent);
        super.setMainRoute(HomeAbilitySlice.class.getName());
        // 设定状态栏及导航栏颜色
        this.getWindow().setStatusBarColor(new Color(Color.getIntColor("#27408B")).getValue());
//        this.getWindow().setNavigationBarColor(new Color(Color.getIntColor("#27408B")).getValue());
        this.getWindow().setStatusBarVisibility(WindowManager.LayoutConfig.INPUT_STATE_ALWAYS_VISIBLE);
    }

}
